/*
 * @Description: 
 * @Version: 2.0
 * @Author: 
 * @Date: 2022-04-08 13:11:49
 * @LastEditors: cxc
 * @LastEditTime: 2022-04-08 16:36:48
 */
const initValue = []
export default function departmentReducer(preState = initValue, action) {
  const { type, data } = action
  switch (type) {
    case 'getDepList':
      // console.log('reducer中的action', action);
      return {
        newArray: [...data.newArray],
        count: data.count
      }
    default:
      return preState
  }
}